yum install -y rpcbind nfs-utils

rm -rf /etc/exports
echo "/root/nfs/ *(insecure,rw,sync,no_root_squash)" >> /etc/exports

mkdir /root/nfs

systemctl enable rpcbind
systemctl enable nfs-server

systemctl start rpcbind
systemctl start nfs-server
exportfs -r

exportfs